home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
bbs_soft
/
sfdays.zip
/
SFDAYS.DOC
< prev
next >
Wrap
Text File
|
1993-01-01
|
8KB
|
184 lines
SFDAYS
Version 1.0
Copyright (C) by Mike Woltz, 1993
Buffalo Creek Software
INTRODUCTION
------------
SFDAYS is a SPITFIRE companion utility. It is designed to be
used in conjunction with SPITFIRE's daily scheduled events to execute
a series of commands provided the day of the month entered as a command
line parameter is equal to the system's date. SFDAYS is written by
in Turbo Assembler by Mike Woltz, author of SPITFIRE.
COMMAND LINE PARAMETERS
-----------------------
Valid command line parameters may be any date or any number of
days of the month. For example:
SFDAYS 1
would execute the commands in SF.BAT for the respective event on the
first day of each month.
Similarly:
SFDAYS 5 10 15 20 25 30
would execute the commands in SF.BAT for the respective event on the
5th, 10th, 15th, 20th, 25th and 30th day of the month.
The only limitation to the number of command line parameters that
can be used is DOS's restriction which limits the command line to 128
characters.
USAGE
-----
Before attempting to use SFDAYS, you should be familiar with how
to set up a SPITFIRE scheduled event. For additional information
on setting up a scheduled event in SPITFIRE please refer to the
SPITFIRE documentation section entitled: Events Menu Explanation.
Begin by setting up an event for using SFDAYS by selecting
<E>...Enable An Event from SPITFIRE's Events Menu. Once you have
done this, SPITFIRE will provide a series of prompts which allow you
to enter the information needed by SPITFIRE to enable the event. First
you are asked to enter the time at which the event will occur. Next,
you are presented with the option of selecting what day the event will
be activated. It is important that 7 be selected for All. Next,
SPITFIRE will ask whether the event should be marked as completed. The
final prompt determines whether the event is to be marked as an "on time"
event.
** NOTE ** The reason for selecting 7 for All should be obvious.
If you were configuring SFDAYS for the 10th of the month and set it
up as an event which is only run on Sunday, the 10th would have to
fall on Sunday or your commands in the batch file would not be executed.
Therefore, to ensure your commands are executed the 10th of each month,
regardless of the day of the week, All is selected when creating the
event.
Next, you will need to modify your SF.BAT. A sample batch file,
SFDAYS.SAM may be used as a guide.
A SAMPLE CONFIGURATION OF SFDAYS
--------------------------------
For the purpose of demonstrations, let's assume we wanted to set
up Event_A to run Buffalo Creek Software's SFTOPTEN each night and
SFLOG on the 10th, 20th and 30th day of each month. (SFTOPTEN creates
a bulletin of the BBS's top ten callers. SFLOG creates a bulletin of
system activity and is then used to initiate a new log file.)
Using the process described above, Enable Event A so that it will
run at 00:01 (1 minute after midnight) each night (7 for All).
Next, using your favorite text editor (one which saves in ASCII
format) locate the following in your SF.BAT:
:EVENT_A
REM Place Event Commands Here
GOTO LOOP
The commands for executing SFDAYS as a nightly event should be placed
between :EVENT_A and the GOTO LOOP statements as follows:
:EVENT_A
SFDAYS 10 20 30
IF ERRORLEVEL 1 GOTO NOT_A_DAY
GOTO A_DAY
:A_DAY
CD\SF\WORK
SFLOG /BULLET1
COPY BULLET1.* \SF\DISPLAY
DEL BULLET1.*
GOTO NOT_A_DAY
:NOT_A_DAY
CD\SF\WORK
SFTOPTEN C:\SF\DISPLAY\BULLET4
CD\SF
GOTO LOOP
:EVENT_B
REM Place Event Commands Here
GOTO LOOP
. . . etc.
(** NOTE ** If SFDAYS.COM is not in your path, you should either
precede it with the drive letter and directory name or change to the
drive and directory where it resides prior to executing the command.
Also, any reference to directories using the SPITFIRE utilities SFLOG
and SFTOPTEN should be replaced to correspond to the drives and
directories suitable for your system structure.)
Using the above example, when Event_A is activated, SFDAYS will
check to see if the system date is equal to 10, 20 or 30. If the
system date does not match any of these, an ERRORLEVEL of 1 is returned
and the batch file continues to execute the commands within NOT_A_DAY.
(In other words, if the system date does not match 10, 20 or 30 the
batch file will proceed by changing to the \SF\WORK directory, executing
the SFTOPTEN utility and then changing back to the SF directory before
returning to SPITFIRE.)
If ERRORLEVEL 0 is returned when SFDAYS is executed (the system date
is equal to the 10th, 20th or 30th) the batch file will continue to
process the commands within A_DAY. (In other words, it will change to
the \SF\WORK directory, execute SFLOG, copy the created bulletin files
to \SF\DISPLAY, erase the bulletin files in the current directory, and
then continue on to process the commands within NOT_A_DAY. Refer above
for the processing associated with NOT_A_DAY.)
GENERAL INFORMATION
-------------------
Once you understand the concept of SFDAYS, its potential is virtually
unlimited. Any number of programs can be set up as scheduled events with
SFDAYS to handle these tasks at regular intervals according to the day of
the month.
DISTRIBUTION
------------
The following files are included in the distribution package:
SFDAYS.COM Executable program file
SFDAYS.SAM Sample batch file illustrating usage of SFDAYS.COM
SFDAYS.DOC Documenation for SFDAYS.COM
SFDAYS is distributed under the shareware concept. You are free to
distribute the SFDAYS program as long as it remains unmodified and no fee
is charged. If you continue to use this program after an adequate
evaluation period a registration fee is required. To register SFDAYS,
send $1.00 to the following address:
Buffalo Creek Software
Attn: Mike Woltz
913 - 39th Street
West Des Moines, Iowa 50265
DISCLAIMER
----------
Mike Woltz and/or Buffalo Creek Software shall in no way be held
responsible for any damage incurred while operating SFDAYS. All
responsibility lies with the user of the software.
The documentation for SFDAYS is contributed by Jacque Shipley and
The Mother Board BBS. The shareware version of SPITFIRE and other
SPITFIRE utilities are available for download from:
Buffalo Creek's BBS The Mother Board BBS
Mike Woltz, Sysop Jacque Shipley, Sysop
(515) 225-8496 (515) 986-3464
38400/19200/9600/2400/1200 Baud 19200/9600/2400/1200 Baud